<!DOCTYPE html  >
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


<head th:include="/base/common_css('test')">

<body>
<div th:include="/base/common_banner"></div>

<!-- Header ends -->
<!-- Main content starts -->

<div class="content">

    <!-- Sidebar -->
    <!--menu ????-->
    <div th:include="/base/common_menu"></div>
    <!--menu????-->
    <!-- Sidebar ends -->

    <!-- Main bar -->
    <div class="mainbar">

        <!-- Page heading -->
        <div th:include="/base/common_pageHeader"></div>
        <!-- Page heading ends -->

        <div class="matter">
            <div class="container">
                <div class="row">
                    <div class="col-md-12">

                        <div class="widget">

                            <div class="widget-head">
                                <div class="pull-left">系统图片列表</div>
                                <div class="widget-icons pull-right">
                                    <div class="btn-group">
                                        <button onclick="openPage('/view/toUpdateSysImg')" class="btn btn-primary">新增
                                        </button>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div class="widget-content medias">
                                <table border="1" class="table table-striped table-bordered table-hover">
                                    <tr>
                                        <th>
                            <span class="uni">
                              <input type='checkbox' value='check1'/>全选
                            </span>
                                        </th>
                                        <th>序号</th>
                                        <th>图片类型</th>
                                        <th>是否展示</th>
                                        <th>创建时间</th>
                                        <th>修改时间</th>
                                        <th>操作</th>
                                    </tr>

                                    <tr th:each="obj,objStat:${sysImgList.list}">
                                        <th>
                            <span class="uni">
                              <input type='checkbox' value='check1'/>
                            </span>
                                        </th>
                                        <td th:text="${objStat.count}">123</td>
                                        <div th:switch="${obj.sysImgType}">
                                            <td th:case="0">启动图</td>
                                            <td th:case="1">轮播图</td>
                                            <td th:case="2">闪图</td>
                                            <td th:case="3">水印图</td>
                                        </div>

                                        <td th:text="${obj.isShow} ? '是': '否'"></td>
                                        <td th:text="${#dates.format(obj.createTime,'yyyy-MM-dd')} "></td>
                                        <td th:text="${#dates.format(obj.updateTime,'yyyy-MM-dd')} "></td>
                                        <td>
                                            <a th:href="@{'/view/toUpdateSysImg?sysId='+${obj.sysId}}"
                                               class="btn btn-success">修改</a>&nbsp;&nbsp;&nbsp;
                                            <a th:href="@{'/view/deleteSysImg?sysId='+${obj.sysId}+'&pageNumber=1&pageSize=10'}"
                                               class="btn btn-danger">删除</a>
                                        </td>
                                    </tr>
                                </table>
                                <div class="widget-foot">
                                    <div id="page2">
                                        <input type="hidden" id="pageNumber" th:value="${sysImgList.pageNum}">
                                        <input type="hidden" id="pageSize" th:value="${sysImgList.pageSize}">
                                        <input type="hidden" id="totalPage" th:value="${sysImgList.pages}">
                                        <input type="hidden" id="total" th:value="${sysImgList.total}">
                                    </div>
                                </div>


                            </div>
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>


<!--footer-->
<div th:include="/base/common_footer"></div>


<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span>

<!--js????-->
<div th:include="/base/common_js"></div>
<!--js????-->


<script type="text/javascript">
    function openPage(path) {
        window.location.href = path;
    }
    initPage('page2', '/view/sysImg', {}, false);
    /* Curve chart ends */

</script>
</body>
</html>
